package com.chixing.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("pagesManage")
public class PagesManageController {

    @RequestMapping("/logout")
    public String logout(HttpSession session){
        session.removeAttribute("loginuser");
        return "redirect:/jsp/backStageLogin.jsp";
    }

    @RequestMapping("/companyJob")
    public String companyJob(){
        return "jsp/backStageCompanyJob";
    }

    @RequestMapping("/manageJob")
    public String manageJob(){
        return "jsp/backStageManageJob";
    }

    @RequestMapping("/companyData")
    public String companyData(){
        return "jsp/backStageUpdateCompany";
    }

    @RequestMapping("/chatMain")
    public String companyChatMain(){
        return "static/chatMainManage";
    }
}
